from sklearn.datasets import load_breast_cancer
data = load_breast_cancer()
# 将数据转换为 DataFrame（如果需要）
import pandas as pd
df = pd.DataFrame(data.data, columns=data.feature_names)
df['target'] = data.target
df.to_csv('breast_cancer_data.csv', index=False)